package exam.huawei;

import java.util.ArrayList;
import java.util.LinkedList;
import java.util.Scanner;

/**
 * @author chenhong
 * @version 1.0
 * @description TODO
 * @date 2023/4/16 16:35
 */
public class HJ93 {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        while (in.hasNext()) {
            ArrayList<Integer> list = new ArrayList<>();
            int n = in.nextInt();
            int sum5 = 0;
            int sum3 = 0;
            int sum = 0;
            for (int i = 0; i < n; i++) {
                int cur = in.nextInt();
                if (cur % 5 == 0) {
                    sum5 += cur;
                } else if (cur % 3 == 0) {
                    sum3 += cur;
                } else {
                    list.add(cur);
                }
                sum += cur;
            }
            int target = sum / 2 - sum3;
            if (sum % 2 != 0) System.out.println("false");

        }
    }
}
